package com.sanploy.file.repo;

import com.sanploy.file.entity.T_excelFile;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by Administrator on 2017/7/10.
 */
public interface ExcelRepo extends CrudRepository<T_excelFile,Long> {
    @Query(value = "select * from t_excel_file where user_id=?  ORDER BY add_time desc  Limit 1",nativeQuery = true)
    public T_excelFile findByUserId(Long user_id);
}
